from tkinter import *
from show import showinmap
from predict import predictinmap
root = Tk()
root.geometry('460x240')
root.title('动物轨迹分析')

lb1 = Label(root, text='请输入一个动物ID：')
lb1.place(relx=0.1, rely=0.1, relwidth=0.8, relheight=0.1)

inp1 = Entry(root)
inp1.place(relx=0.3, rely=0.2, relwidth=0.3, relheight=0.1)

btn1 = Button(root, text='显示动物轨迹', command=lambda: showinmap(inp1.get()))
btn1.place(relx=0.3, rely=0.4, relwidth=0.3, relheight=0.1)

btn2 = Button(root, text='预测动物轨迹', command=lambda: predictinmap(inp1.get()))
btn2.place(relx=0.3, rely=0.5, relwidth=0.3, relheight=0.1)

root.mainloop()
